
import { favoriates } from '@/api/user'
const state = {
  list: []
}

const mutations = {
  submitlist (state, payload) {
    state.list = payload
  }
}
const actions = {
  async getfavoritelist (context) {
    const res = await favoriates()
    context.commit('submitlist', res.data.body)
  }
}
const getters = {

}
export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
